<?php

class Default_IndexController extends Zend_Controller_Action
{

    public function init()
    {
        $layoutPath = APPLICATION_PATH . '/templates/default';
		$options = array (
				'layout' => 'index',
				'layoutPath' => $layoutPath 
		);
		Zend_Layout::startMvc ( $options );
    }

    public function indexAction()
    {
        list($this->view->Pager,$this->view->Articles)= Article::getAll(array('status=?'=>1,'categories_id!=?'=>19),1,5);
        list($this->view->PagerComment,$this->view->Comments) = Comment::getAll(array('status=?'=>1));
        $this->view->About = Article::getAllWithoutPager(array('status=?'=>1,'categories_id=?'=>19),1);
    }


}

